package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.po.Emp;
import com.itheima.domain.query.EmpQueryParam;
import org.apache.ibatis.annotations.Param;

public interface EmpMapper extends BaseMapper<Emp> {
    /**
     * 仿照着Page<> selectPage(Page<> page) 实现自定义sql语句的分页查询
     *
     * @param page
     * @param param
     * @return
     */
    Page<Emp> selectEmpPage(Page<Emp> page, @Param("param") EmpQueryParam param);
}
